<?php
/**
 * User: shutao
 * @var View $this
 */

use yii\web\View;

$this->title = '模板变量列表';
?>
<div ng-controller="varIndexCtrl">
    <div class="xblock">
        <span class="x-right">共有数据：<span><span ng-bind="pagination.itemsCount">0</span> 条</span></span>
    </div>

    <table class="layui-table">
        <tr>
            <th>变量名</th>
            <th>绑定值</th>
            <th style="width: 130px;">操作</th>
            <th></th>
        </tr>

        <tr ng-repeat="x in datas">
            <td><span ng-bind="x.name"></span></td>
            <td><span ng-bind="x.value"></span></td>
            <td>
                <a ng-click="toSelect(x)"
                   class="layui-btn layui-btn-xs layui-btn-normal">
                    <i class="layui-icon">&#xe605;</i>
                </a>
            </td>
            <th></th>
        </tr>
    </table>
    <div pagination="pagination" class="pagination"></div>
</div>
<input name="_csrf" type="hidden" id="_csrf" value="<?= \Yii::$app->request->csrfToken ?>">